test all .js files in test folder
use cookie module for testing csrf
refactor tests a lot