support -D option to copt
add more test for copt