Add test for import of utf8 pragma

Test that we are importing the utf8 pragma.

I was trying identify the cause behind #782. Unfortunately these tests pass on Travis, so I'm still no closer to tracking it down. These may as well be merged [ for completeness, if nothing else :) ]