Fix bugs in the redux tests.

- Trimes trailing spaces in the ds script
- Fixes deadloop during screenshot capturing
- Adds UK example to test help documentation
- Brings back randomuser.js include required by UK tests
Fixes per #3131 review.
Merge pull request #3131 from sergii-tkachenko/test-redux-bugfixes

Fix bugs in the redux tests.