Remove deprecated functions in test programs