diff --git a/fem/test/test-fem-alberta.cc b/fem/test/test-fem-alberta.cc
index 09751d841654e56c5d3313c8e711e2ff99ed2eed..fe21b7b29387060b122cff8879485b23da82f2ad 100644
--- a/fem/test/test-fem-alberta.cc
+++ b/fem/test/test-fem-alberta.cc
@@ -6,7 +6,7 @@
 
    Instantiate Alberta-Grid and feed it to the generic femcheck()
 
-   Note: Albert needs the defines DIM and DIM_OF_WORLD on the
+   Note: Albert needs the defines DUNE_PROBLEM_DIM and DUNE_WORLD_DUNE_PROBLEM_DIM on the
    commandline anyway thus we can use them to select the correct class
 
  */
@@ -22,15 +22,18 @@ int main () {
   try {
     /* use grid-file appropriate for dimensions */
     std::ostringstream filename;
-    filename << "alberta-testgrid-" << DIM << "-" << DIM_OF_WORLD << ".al";
+    filename << "alberta-testgrid-" << DUNE_PROBLEM_DIM
+             << "-" << DUNE_WORLD_DUNE_PROBLEM_DIM << ".al";
 
-    std::cout << std::endl << "AlbertaGrid<" << DIM << "," << DIM_OF_WORLD
+    std::cout << std::endl << "AlbertaGrid<" << DUNE_PROBLEM_DIM
+              << "," << DUNE_WORLD_DUNE_PROBLEM_DIM
               << "> with grid file: " << filename.str()
               << std::endl << std::endl;
 
     // extra-environment to check destruction
     {
-      Dune::AlbertaGrid<DIM,DIM_OF_WORLD> grid(filename.str().c_str());
+      Dune::AlbertaGrid<DUNE_PROBLEM_DIM,DUNE_WORLD_DUNE_PROBLEM_DIM>
+      grid(filename.str().c_str());
       for(int i=0; i<3; i++)
       {
         grid.globalRefine(1);
diff --git a/grid/test/test-alberta.cc b/grid/test/test-alberta.cc
index e994ba73429b9a1f64416d7869dae99be41b57ec..ba3d1cff8838c01330b246ea286d33f51924182d 100644
--- a/grid/test/test-alberta.cc
+++ b/grid/test/test-alberta.cc
@@ -22,16 +22,19 @@ int main () {
   try {
     /* use grid-file appropriate for dimensions */
     std::ostringstream filename;
-    filename << "alberta-testgrid-" << DIM << "-" << DIM_OF_WORLD << ".al";
+    filename << "alberta-testgrid-" << DUNE_PROBLEM_DIM
+             << "-" << DUNE_WORLD_DIM << ".al";
 
-    std::cout << std::endl << "AlbertaGrid<" << DIM << "," << DIM_OF_WORLD
+    std::cout << std::endl << "AlbertaGrid<" << DUNE_PROBLEM_DIM
+              << "," << DUNE_WORLD_DIM
               << "> with grid file: " << filename.str()
               << std::endl << std::endl;
 
     // extra-environment to check destruction
     {
       factorEpsilon = 500.0;
-      Dune::AlbertaGrid<DIM,DIM_OF_WORLD> grid(filename.str().c_str());
+      Dune::AlbertaGrid<DUNE_PROBLEM_DIM,DUNE_WORLD_DIM>
+      grid(filename.str().c_str());
       for(int i=0; i<3; i++)
       {
         grid.globalRefine(1);