tests for model