test: check that mkdir foo; create bar; listdir foo returns ["bar"]