Convert scheduler tests to integration tests

Use `strconv.FormatInt`.