If it does not work in the other way, the it could be related to the order in which rules are executed, that can be solve migrating to the last junit version (not as part of this change, of course).
But it looks weird to me that the test uses a static field just to define an instance field