fix data types in after_request test

TODO: why was that bug not causing / displaying an exception somehow?
      should give a TypeError in py 3.3.