Fix libraries order to fix tests on different machines