Database tests improved. Authenticate resource added.