Move test code for 'dquad' models into main source tree