Add more test cases.

1. Test auto_ptr.
2. Add death test.

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