Moved some test stuff into tclib.