make test_valid_ref_path more thorough