mock up Shiro exceptions in some resource tests