Unit tested all API methods