fix result state bug
Fix tests according to new resultState logic