Refactor handles URLs tests to mixin