test code for quadprog scaling