diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8af981a26..c1952fdb3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -124,5 +124,24 @@ endif (NOT EIGEN3_FOUND)
if (HAVE_OPM_DATA)
- add_test( NAME flow_SPE1 COMMAND flow ${OPM_DATA_ROOT}/spe1/SPE1CASE1.DATA )
+ add_test( NAME flow_SPE1 COMMAND flow ${OPM_DATA_ROOT}/spe1/SPE1CASE1.DATA )
+
+ add_test( NAME flow_SPE1CASE2 COMMAND flow ${OPM_DATA_ROOT}/spe1/SPE1CASE2.DATA )
+ add_test( NAME flow_SPE1CASE2_restart COMMAND flow ${OPM_DATA_ROOT}/spe1/SPE1CASE2_RESTART.DATA )
+
+ set_tests_properties(flow_SPE1CASE2_restart PROPERTIES DEPENDS flow_SPE1CASE2) # Dependes on the restart file from test flow_SPE1CASE2
+
+ add_executable( test_restart tests/test_restart.cpp )
+ target_link_libraries( test_restart opmautodiff ${Boost_LIBRARIES})
+
+ add_test( compare_restart_files
+ ${CMAKE_BINARY_DIR}/bin/test_restart
+ SPE1CASE2.UNRST
+ SPE1CASE2_RESTART.UNRST # Restart from step 60
+ 120
+ )
+
+ set_tests_properties(compare_restart_files PROPERTIES DEPENDS flow_SPE1CASE2_restart) # Compares the restart files from tests flow_SPE1CASE2_restart and flow_SPE1CASE2
+
+
endif()
diff --git a/tests/test_restart.cpp b/tests/test_restart.cpp
new file mode 100644
index 000000000..250300a80
--- /dev/null
+++ b/tests/test_restart.cpp
@@ -0,0 +1,73 @@
+/*
+ Copyright 2014 SINTEF ICT, Applied Mathematics.
+ Copyright 2015 Statoil ASA.
+
+ This file is part of the Open Porous Media project (OPM).
+
+ OPM is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+
+ OPM is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with OPM. If not, see .
+*/
+
+#include
+
+#if HAVE_DYNAMIC_BOOST_TEST
+#define BOOST_TEST_DYN_LINK
+#endif
+
+#define BOOST_TEST_MODULE RestartTests
+
+#include
+#include