Reverse package list to install required dependancies first
Add a test for issue #1934