added passing rspec testing for type model