Fixed test discovery on Python 2.7 for travis-ci