Test stop functionality