authentication module phpunit tests