add pos cmdline test, and multithreaded test