Revert "Some tests for thread.h"

This reverts commit 3cc3b53c9c14f550e950bd418d5aa56b59f5b0b0.