TESTS: added tests re issue #826 to function-test.red