Tests refactoring - mocks and helpers were separated from testing logic
Better explanation of frame filtering logic