Test for #177. Closes #187