Added assert_same function and updated test-groupings to use the new function