Fixing notification behaviour test:
Script for remove all notifications now executes async,
using the notification `onclose` event on the last notification to know when the notification finished.
fixing clearing of notifications and refactor the code as I was calling shouldClear 3 times