Add acceptance tests for redmine #2936.