Introduced automa reset
Added test for reset function
Merge branch 'reset' into develop