IO manipulation  include was missing, obfuscated by the fact that test includes iostream.