add some tests (closes #8)