added an integration test for format conversion to convert calc->referenced->calc and make sure json still validates