client controller finished
added tests for client controller