regenerating client and testclient