fix issues with options in testclient