added possibility of manually specifying the test data dir