fixing unit tests

This gets rid of the rspec spec deprecation warnings.