added jasmine tests for mockServerClient and improved client