added test for localhost domain