tests.c: support older versions of Check framework