Fixed line item errors and tests passing