updated tests
got sinon spy working