Updates tests

Adds checks for empty query parameters. They are stripped out if
present.