Develop

fixed TPCF testing suite and some typos that revealed in TPCF function.