MDLUM-2998: Fix to use  instead of DB queries in connection test