fix broken tests caused by undefined dir listing order