Code Based Test Data Compression for SoC Testing