chore(consumer): adds tests for consumer