Added localhost test support.