Test for checking the result is the same as old code