reference_tests: add a task-safety test (that isn't relevant on single-core)