Initial unit tests and API experiment