Test that a background task does in fact run on the desired interval.