Added unit test for issue #559

@NelleV @benjaminvialle