added tests for Issue #875