adding frame test cases.
error handling.
adding frame test cases.