Fix issue # 46

Fixed linker option for  the test extension. Some other fixes, allowing to run tests without installing the library.