Fixed Relation::getReferenceQuery() - used referenced field instead of table primary key
Marked needed models tests in ModelGeneratorTest as incomplete