Refactored some test code in org.jtrim.swing.component.