Added a unit test for notifications count

too long a delay. Again remove delays and time dependency.