tests: fixed ObjectMixin test
ObjectMixin: magic @methods are created only when corresponding property exists [Closes #1230][Closes #1344]