Fixed tests for sql server