added auth mixins and tests