Added Unit tests for core.api module