Testing the enter and exit hierarchy.