Add unit test for expanding context variables in the search path