added tests for has_many