reducer validation & test, indentation fix

reducer validation & test
note for hazelcast issue #2173
indentation fixes