reorganize tests for reduce