Add unit test
Document issues