Discount controller test and rb file. Test needs bugfixing