splitted test/frame.js into seperate files in test/frame