Fix tests to work in bot modes.