It seems sin/cos doesn't have any tests for rewrite(pow) with a symbolic x.  What's expected as output?

I don't think we need this workaround.  Either you should fix sin/cos rewrite functions or just remove failing tests (or mark them with XFAIL decorator).