added simple c++ thread example, transformed all non which function is called tests into asserts