Some businesses are bucking the outsourcing trend and bringing certain tax functions back in-house as scrutiny by tax authorities increases.