add in test receipt api (bug 865498)