Fixed test runner script so it return the exit status of the test suite.
Added mercurial to the list of dependencies for travis (needs to be installed in the virtualenv it seems).