testing component and require