Write tests for: training parameter calculation