Fix wrong test name
Remove unnecessary loop and slice