Moves variable evaluation tests to pkg/proc which is where most of the code they test exists, this also allows the removal of a bunch of duplicate support code.