Yes, I have noticed this problem when switching to test mode with those conditions in the betting trigger. The test mode switch wasn't part of the betting strategy, I was simply continuing the betting to see what would happen if run continuously, so I gave up trying to solve it.
I don't believe this is a bug, but the way the program is written, where previous triggered event refers to the mode the trigger is in, live or test. It might be worth puting in a trigger request using Make Me a Trigger, to see if the experts can solve the problem.