Nodejs Unit test case issue fixed