test by using first 5 frames