update sync and use xhrImplementation to mock success tests

Closes #9