add tests. Fix maven