fixed syntax error and added new tests