Fix bug in cloneWithProps()
Fix react tests