Update of lib and tests