add generic rspec testing and rake task functionality