changed from ``codecs.open`` to ``io.open`` for opening tests files (codecs is deprecated)