Fix initial wiring error status
Fix market management tests