     connection = new Connection(config)
 
   test.done()
+
+# Test that the default setting for DATEFIRST is 7
+exports.testDatefirstDefault = (test) ->
+  test.expect(3)
+
+  config = getConfig()
+
+  connection = new Connection(config)
+
+  request = new Request('select @@datefirst', (err) ->
+    test.ifError(err)
+    connection.close()
+  )
+
+  request.on('row', (columns) ->
+    dateFirst = columns[0].value
+    test.strictEqual(dateFirst, 7)
+  )
+
+  connection.on 'connect', (err) ->
+    test.ifError(err)
+    connection.execSql(request)
+
+  connection.on 'end', (info) ->
+    test.done()
+
+# Test that the DATEFISRT setting can be changed via an optional configuration
+


testArithAbort = (test, setting) ->
  test.expect(5)
	
  config = getConfig()
  config.options.enableArithAbort = setting if typeof setting is 'boolean'


  )

exports.ntlm = (test) ->
  runNtlmTest test, DomainCaseEnum.AsIs

exports.ntlmLower = (test) ->
  runNtlmTest test, DomainCaseEnum.Lower
