Added a unit test for notifications count

Let's throw in the method and avoid these try/catch for sleep()