Change test; check thread id only when OS is Linux