fix tests and clean up auth