added unittests for JSON mapping