Foundry testing