instrumented version for compress
fix test for compressing castling move