Added unittests for issue 11745.