pool testing code