added tests for VisualPart