Fixed phpunit tests for models