"with" relationship tests

fix has_many with “with”
fix “with” query not being executed