testing/server: add method to mutate the state of a container
testing/server: return the proper ExitCode on waitContainer