added test for local consumer