Add tests for tab component.