adding test for missing switchcase
extracting the frame controller from the main frame