Setup test cases for derived table.