Add more test cases.

1. CPP test cases.
2. Perl test cases.

Signed-off-by: ztzhang <zhentao.zhang@netgear.com>