Fix a bug when closing more than one file after a test.
Add test of c-^ to switch to the previous buffer.