added test for localhost domain

so that we can set next_url appropriately