TESTS: Added test for issue #678