Implemented tests to ensure that schedule loop handles successful results