Improve react components tests