Refactored WebIDL interface tests and organized test pattern within require statements.