Fix use of stream reduce in command_test