Test postMessage and garbage collection.