add tests for client generation