add test programs for float and ldouble precision