more tests

fixes #21, #23, #24.