APP single instance test case PR for v0.9

I try this case with v0.8 and v0.9, and now only nw-0.8.7-rc3 will pass this case.
Please merge it into master branch.