Added a unit test to look at issue #1281