started implementing tests for model