Integrate testing code