move model tests into test/model