ENH: simplify reduce done, pass test_primitives unit test, TODO test_workflow