R600/SI: Remove dead code and add missing tests.