use localhost in tests
fix #1