Fix test case for Auth component