Fix a bug in execute_test script with test unloading

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>