fix closing stock orders
fix order tests after form improvements