Refactoring tests a little.
Improvements to url normalization
Improving tests for url allow