Added unit tests for all APIs