fixed mystery bugs in models tests