Testing reducer function.