Added a unit test for notifications count

If you increment `counter` with `r.allObjects(Dog.class).size()` we can check if `r` has been updated since the assert above.