tests with sinon-chai