Added sinon js and implemented initial tests