It must reset the @objects before recalculating the linking commands again
fixed tests