Fixed tests to be compatible with SQL Azure