added rate option to testclient