Add tests for React utility functions