new feature: asyncJob, secureAPI, and improved tests

new feature: asyncJob (with test), secureAPI (without test yet).
rewrite some test cases code, now no conflict with each other.