Add test framework.

Signed-off-by: CyberZHG <cyberzhg@gmail.com>