React tests setup and teardown