fixed syntax errors with unit tests