qbtest rewritten by using set_pos_stiff function
other little adjustments