fix dependent destroy of notifications
add test