Make auth tests more robust