Add sinon-chai and chai-as-promised

sinon-chai allows us to better tests mocks and spies, while
chai-as-promised allows us to better test promises.
Switch to sinon-chai syntax
Fix testing ok response on successful clear

Promise testing works!
Simplified tests with beforeEach functions