Fixed linting error in test spec