Add spec test for enable_ipv4_localhost = false bug