add more test coverage for has_many relation on one-sided association