Fix unit test break for #18
Optimize display of the welcome msg.
Add more unit test for #14(Add unit test for all the APIs)