unit test improvements
api doc update