Model & api tests.