Merge "fix(lib/realm):  convert assertions to proper checks" into integration