add bin/mtest for running tests in multiple threads.