Fix tests to work in multi-gdb mode.