Node JS unit test case issue fixed