fix render component in test