Implementation of test for where in scope.