fixing slice (lib and test)