Fixed process-last-test issue