Auth framework updates/unit tests