Fix timeline API ordering issues and test against real seen scenario (new test testWithOverdueOfflineAndClear)