This is a follow-up and a copy of the previous code test. Updated a few minor fixes and added a couple of unit testing.
Doing a test with a URL query will be handled by a mock server that will run temporarily while testing and automatically close when it scope ends.