add diag function
add bad test case
use relative path
pass bad format case
rename test dir and file