Somewhat better implementation of applicationauth with Hysterix including unit tests