developing test modules for q2db and q3db

* added tests for 2d and 3d quadrature rules
* moved imports to top in q2db and q3db
* added "available" array to q1db
* fixed indexing error in q2db.qloc4