Merge "Add edge case test for invalid program length in apf_run()." into main