stop in non-final state puts workflow to error state
move test class to src/test, fix typo in javadoc
improve javadoc and rename parameter
Merge pull request #39 from NitorCreations/check-stop-state-type

Check stop state type