Adds error mock to simulate connection error