Added unittest for basic usage cases.
Skip testing dynamic library until they are working