Add test to verify past dates on schedule and refactor code to fix this.