improved REST client test cases