Fixed some syntax errors and added a new test case