cover random crop with unit test