Add Sinon and write further tests for returning Index