Shiro function test code