remove lodash dep
refactored tests for tape
refactored flip complete