Run tests correctly in a virtualenv.