[#19][#20] replace unittest tainting by mock functions