added stdin to client test