Fix test-packages errors