Add test for within_frame with frame index.

See #185.
Merge pull request #411 from jimjh/master

Add test for within_frame with frame index.