Fixed off-by-one error in FrameCollection.
More tests for FrameCollection.