added tests (before p.103)