Revert "remove test with hardcoded redirect_uri, refs T309"

This reverts commit d835a7fb14717a36c67965c7801dc313d82db8d3
and uses addons.hosts configuration to add the custom hostname.