Test infrastructure for castanet and other things that use CAS