added test for Receipt class