testing for discount