Fixed mocked tests for keepalive().
As a side note, I do not think that mocking CDSTAR on REST level is reasonable. The CDStar class should be tested against the real thing (integration tests) and all other classes should be tested against a mocked CDStar instance. Or, switch to a proper urllib mocking framework. The current tests are very error prone and do not actually verify the correctness of the client library.