Sapient test code