add check before increment counts and add test for preaccept ok
Merge pull request #32 from fengjingchao/inst

add check before increment counts and add test for preaccept ok