Improve readability of tests using NilConsumer() function.