Add two test cases

Add task run, test, stop at build.gradle

Add two simple test cases:
1. run->stop
2. run->stop->start->terminate