fixes to spread test program