Added Guard for rspec testing