Fix same scopes are inspected multiple times

Fix issue #303.
Shouldn't it be enough to just check
expect_any_instance_of(PackagesInspector).to receive(.inspect).once