Nckw cleanup of ftest code

Largely Clean ups of ftest code and submitting bias study jobs
Added toy studies checks for various p-val caculations