Added unit test which does the same as the python code that fails (but here it passes).
Added unit test which does the same as the python code that fails (but here it passes).

realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core,realm/realm-core