Added java 8 to travis tests

- Newer too early
Moved dependency so tests should compile on travis

- from profiles to main dependencies