set proper keep length for byte test