Add legacy worker tests for graceful_term option