modify winnie and add test