quadprog, testing added