Refactor tests
Strip query and hash from file names