- tests for frames
- frames refactoring