improve MdcsService unit tests