refactoring test_score with rspec