adding tests for processing keyframes algorithm