Initialized successHandled to false, added naming to spies for better un...

...derstanding of errors