tests for client