Adding types.
Tests an API.