Update tests using react-testing-library

react-testing-library is recommended for react components testing.