Add tests for discounted price, close #105.