fixes #489 Minor refactor in framescomponent and related test
Merge pull request #502 from anserran/fix489

fixes #489 Minor refactor in framescomponent and related test