Added some tests to check the last frame