MDL-16073 add test for connection to external database for authentication and enrolments