added tests for stop, start, terminate