ENH: Self test added. This fixes #8.