[REMJMX-74] Add some tests for the scenarios which should switch off local auth and the ones that should leave it enabled.