Added tests for the isOverdue() and isDue() functions

EV-519