Fixing bug where ExecuteScalar doesn't return an object
Added tests to ensure that the new execute scalar code functions correctly