added spec tests for models