Add acceptance tests for redmine #2935.