Added debugging tests + API.