fix test: use list() instead of exists()