adds lodash as a dependency; changes test script
minor cleanup
adds tests