finish setWkRepeat function, create a better test case. close issue#3.