EZP-22045: Fix tests
EZP-22045: Made configurable login template and base security layout