Fix ResourceDaoTest on mssql