added support to stop test