Added test to cover active plan count