Write HttpAuth interceptor with tests