Added a constructor to NotificationObject

Helps keeping the unit-test code more compact and readable.
Refined GroupBy tests. Added ordering tests.