better tests for UnknownAttributeOrAssociationError and for ARel emulation