Fix testCanErrorCasess.