Use localhost instead of 127.0.0.1 in the test