add test main function

fixed debugs of magical phantom 2.0 Beta

Signed-off-by: zoulian <zoulian_medphy@sina.com>