Add test for calculate sig with UTF-8