Added test for validator which checks if there are a path and only_context is selected.