Improved test slightly by using a lambda instead of an anonymous namespace function + std::bind.
Improved test slightly by using a lambda instead of an anonymous namespace function + std::bind.

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