Add test for toplevel dependencies reading