CTP test code