refactor the client tests and add a test for post requests