fixed scheduled reports get duplicated #483

added some tests