Fixed directory creation for tests