Add tests for 'forM' and 'forM_'