Tweak tests to work on travis CI, due to different file ordering from dirent