Initialized successHandled to false, added naming to spies for better understanding of errors