Added unit test for issue #559
Merge pull request #1054 from Keraunos/Issue#559_tests

Added unit test for issue #559