Improved travis config
Replaced integer fmod construct with %.
Fixed testcase.