fixed shutdown test.
testclient was not an object,