Enable to run maven tests

Hi.

I fixed some problems to run tests<del>, though tests themselves fail</del>.

```$ mvn test```

By the way, I intend to fix some more issues, so I want to hear your plans about this project if you have.

Thank you for your work.