sets up rspec and batch stub