Rspec tests

Added some tests to help ensure backwards compatibility as we change the functionality of the module.