test for db.getbyparent