test sah and shadow