Added test case for #308