authentication for users and fixed broken test