Added spec case for #306.