Add authentication functional test