updated tests
check for existance of sys.stdout.encoding