update sinon to 1.7.1
add sinon spy test cases