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.
Merge pull request #745 from ThomasWaldmann/sprint-branch

fix data types in after_request test