tests: Add test for nested while with exc and break.