wrap threaded test-case in ifdef