Added more complete tests for AppDefinition serializer