Test Bug #526

Missing test case for the issue #526