Fix test case.
Fix maven build problem.