Add --logdir argument to tests and rename '--test_dir' to '--test'.
Fix for the random config.