remove lodash dependency, add test