Tests for persistentState plugin