test cases for frame