fixed endreveal testcase