Fixed a bug in adding a scheduled check. Added 2 unit tests.
Fixed a bug in adding a scheduled check. Added 2 unit tests.

cogumbreiro/habanero-coq,cogumbreiro/habanero-coq,cogumbreiro/habanero-coq,cogumbreiro/hj-coq