Added some tests for loading objects from JSON