separate tests for reduce and reducedim functions to different files