chai assertions and sinon stubs to help test primus programs