made some modifications
refactorated tests for security filter and logout.js