Fixed the log4j test
Added java 8 to travis