add fail search script
trying to fix failing test
trying to fix tests
fix older tests
Merge pull request #672 from maraoz/fix/travis-tests

general refactor