test for setlegacystatus