minor POM fixes

- made sure test dependencies were set with test scope
- made some dependencies optional