Added two tests to highlight bug #2788

Second test is disabled, but it should be enabled after the bug is fixed.