deal with spec

1. learn to add spec test.