Added tests to new notifications mechanism in user model