receipt test proper clean up and fail independently