implement hack to update csrf token
move i18n testing utility functions to its own mixin subclass