Add dependency on test program for threadslib