fix for references, DAL tests pass also on MSSQL now