Improve test coverage for the lambda versions of inspections and fix bug that was exposed by that.