Added a test, can now remove last query parameter
Updated README