Added test to issue #560

#560