Merge pull request #31 from andresp99999/hcf-middleware

Fix test to work with latest version of HCF
Fix bug in HCF middleware, code to detect duped urls wasn't working correctly