Added test for redmine bug #1884.
Fix for redmine issue #1884.