Add utf-8 header
Sort imports
Rename tests from .txt to .rst