make test_program.p valid, add error reporting for invalid symbols