Added several small testcases

Added testcases for discount related stuff.