Index mapreduce results with ints. Check statusCode on error.
Fix error message test case.