Fixes tsql unit tests.