move client tests to test/client

Preparing for common tests
initial work on sharing tests between client and server