Writing test case for #4