Added testfixture for testing independent client plus a test. Also fixed errors in generated independent client.