test variables are shared between threads