created test for absolute discount option and corresponding code