improving the rspec tests, adding support and utilities to share things with the rspec tests