Fix library test issue