I’m glad to hear that everything works now, but my guess is that is not some kind of bug in the test code. Most likely it was a confusion on your part about the state of your notebook. Here’s a thread which explains some things about how the notebooks work that can cause that type of confusion.