Unit Test cases Refactoring with mockjax.