Where parties jointly indicted are tried separately, the party not on trial, shall, in all cases, be a competent witness for the party being tried.