Changed variable name in annotateList and added a test case.