refactored plugin tests
refactored core tests
Added reduce
added grep functionality to perf tests