tests for processing keyframes algorithm