created a test case to verify #4682