Fixed a problem in quadrature and updated the select
unit test.