add more tests to samples

fix #293