Fix library path in tests