Add test scripts

Add test scripts that run all example codes. fix #15