add compiler flag
add test support