Add rspec config
Refactor into a module subclass