[gfs] Add a python test for slicing