added tests for notification actors and made some refactoring to facilitate testing