implemented tests for stop method