test auth without OOP