Correction of wrong exit code when testing state.yaml
Additionally removes an old typo