Added testcase for PremiumDiscountsTable
Some optimizations