Tweak testcase setup.

Signed-off-by: crynobone <crynobone@gmail.com>
Flush app during teardown.

Signed-off-by: crynobone <crynobone@gmail.com>