fix all headers

add unit test file for every header,
and fix all syntax errors in headers.