Add failing test and fix for #1422.
Merge pull request #1559 from gittip/fix-receipts

Add failing test and fix for #1422.