fix append problem in tests