Specs for where $_ is defined and when it is defined?

I've covered this point in above comments but I'll reiterate it here: this sort of spec is unnecessarily complex. Assert the expectation as close to the example code as possible, as simply as possible.