Added test for manipulating query part of the URI.
Revert "Temp fix for failing test (tests running in mixed order)"

This reverts commit 2bf357eefc3ed53d8950d500f9ee2e27cc05e194.
Added tearDown for hub tests cleaning up.