wrote tests and green'd tests for notification ordering by priority and date