add option to set test directory