Add some tests with sinon and chai