implementing alarm by date tests