Bad test when checking ischedule method