made test optional
shared library