Refactor so price validation is testable. Add tests for price validation.