Naive diff implementation to make the tests more platform independent.