Updated lib and tests.