[lib] cleanup unused or duplicated headers in source file
[tests] add utils test
[tests] cleanup whitespaces