fixes bug in tests script causing travis build to fail