Fix maven issue of the mock tests