add more test case, fix req.idempotent
Merge pull request #314 from dead-horse/tests

add more test case, fix req.idempotent