added spec test for model