Revert test/scan_test.go to be closer to the original. It works without the cleanup code.