Add tests for JSON loaded via object