merge dirty test
1. merge thread test; 2. optimize util code