Added handling of tests dependent on authentication