test main proc