testing directories properly