Fixed bug in stats client test