introduced sinon for javascript testing