Note you are expecting a string here but the var name makes it sound like a boolean and you are actually passing a hash!!!

I think you need to start writing some tests to expose all of these little gotchas...