Unit tests for libimcv