Fix bug in a JUnit nbinotifications test