ENH:add unit test. Initial draft