fix tests when url gets a hash appended to it
Merge pull request #323 from segmentio/fix/hash-in-tests

fix tests when url gets a hash appended to it