added tests for v1 client