Add dot unit tests, fix #15