Test WorkerContext.close functionality. Should print a series of PASS messages, followed with DONE.