Fixes #14(Add unit test for all the APIs)