Fixed failing test cases in ia module.
Fixed a broken testcase.
more travis tweaks.

Added test_requirements.txt with packages required for testing and moved
some of them to apt-get install in .travis.yml