#32 updated index.js
#31 New tests added