Testing using Closure to Select from SQL Server