Currently, most layout tests only use the legacy notification API. We should have a similar (or better) test coverage for the new notification API, e.g. that the click events are correctly routed, etc..
Please take a look at http/tests/notifications, as well bugs 81048 and 95539.