The IRS is working to develop its own free electronic tax-filing system in a potential challenge to commercial products such as TurboTax. The agency plans a pilot test of the program next year.