Revert "Update client_test.go"

This reverts commit 794a6633eb46439d995bbb615f9718e7264d8c35.
expose status code and fix test