Now InvestmentFund constructor throws an exception if parameters are invalid.