adding unit test to check that null properties are not instantiated with empty object