fixed polymorphic associations in models for inverse, fixed typos in tests