remove Syntax Error and add unit test (with nose)