Tk Aqua issue 3ceb6b0f65 means that the approach of using a timer event to automatically end the test no longer works on Aqua at least since 8.6.12 (likely since 8.6.11).
Consider finding some other way to programmatically dismiss the message box (and also avoid relying on exit() due to #14).