homework7: add some tests