Travis build fixes

Make unit and functional tests pass on Travis by specifying package versions in requirements.txt and test-requirements.txt.