added url query function
more tests