Add test cases for handles() with csrf token.

Signed-off-by: crynobone <crynobone@gmail.com>