Modified the mod test program