Add test for redmine bug 392