improved testing for notifications