Add guard for automatic running of rspec tests