Added init and cleanup functions for Client tests.