Out-of-distribution Tests Reveal Compositionality in Chess Transformers