Fixed libraries loader in tests