add test and expect data
can run, need to debug
1st ac local
fix c syntax error