Enable travis build and mock test case