S done,updated ref/test