fix sorting issue with jdk8
add more test to travis