Added failing test for gh-27
Catching type error now; fixed gh-27