fixed testInitDirectory (parameters had swapped places tmpDir <-> "test")