Fixes the test for opening and modifying a state