it could be clearer to specify x, the 'number of frames' you want to read, then it would be clear that test considers 3 out of x misaligned_frames acceptable