Fix broken tests for platform ls after my recent change.