added the test case for #3