Added test case for #896