Better test coverage for jquery react test