Bug fixes, ITest for SearchMapReduce

Fixes input JSON generation, adds itest for SearchMR