added stop method to api-mock class