Add testing common code