fixes #489 Minor refactor in framescomponent and related test