[core] Fix ls test, finally