add tests for plans and consumers