Fixing syntax error and adding test coverage.