add #last_uri_query_params with tests
change require method for files
reorder code and tests
add more tests for #last_uri_query_params