Added test for stop simulation bugfix