Added a test for issue #422