fixing bug in parameter builder if association was null
integration tests
moved to unit
rewrite to introspect objects for metadata