mark internal functions as libraries

Signed-off-by: luka8088 <luka8088@owave.net>
unit test fixes

Signed-off-by: luka8088 <luka8088@owave.net>