Fix discount test. #107
Fix tests.