import json


def _test_failed_with_oob(json_file):
    """
        Load the test from the json file and check the relevant attributes. The test must be valid, and FAILED because
        of OOB
    """
    with open(json_file, 'r') as test_json:
        data = json.load(test_json)
    return data["is_valid"] and data["test_outcome"] == "FAILED" and data["description"].startswith("Car drove out of the lane")