add template tests
remove unused method from authentication token model
fix correct session handling