Unit Test case Refactored with mockjax