speed up test by re-use resource client
make cli test lator
fix dev module
code cleaning for test
use simple closure to create application instance

remove ApplicationFactory
$this is it
code formart for Sandbox tests