Added tests for SQL Server 2005, 2008, 2008R2 and 2012