Add reduction usage test for first/last