Added a test and fixed a syntax error.