adding tests for model method