Fixed lineTotal bug and failing tests

 - the discount in lineTotal() was being applied incorrectly
 - some of the tests were failing
 - added new tests for discount fix