reference_tests: also test the new Is_Last function