Test cases for stub authentication