Fix fake socket test: @socket is null if tests aren't run sequentially.