Defined total properties for Receipt and LineItem.
added unit tests.