Fixed api unit tests. Updated libName functionality