adapted frame test to new frames mockup, test now handles a lot of use cases and I found some bugs