Fixed a bug where when mirror_local_mode lcd was not obeyed. Added tests...

Fixed the bug (one liner) and created tests that do break without applying the fix and do pass with the fix. Testing all the four scenarios (with and without jinja, with and without mirroring local mode).