Add tests for receipt validation