Allowed pricing_api to use variable dates and corrected tests