templateManager: fix templates recursing when frame is non-virtual
frameCreationTests: move recursion test to main test file