Add unit tests for all API functions via pytest library
Add unit tests for all API functions via pytest library