Fix failing test introduced in #10
Prevent adding a state which name is already persistent