Corrected 'host' to point to 127.0.0.1 instead of 'localhost' in tests