Added tests for #832
Merge pull request #1204 from acrobat/add-tests-832

Added tests for #832