add assert test and some functions
add ThreadLocal unit test