Fixed brute_all() for MULTITHREAD_MODE and added test.sh.