libs & unit tests