Updated test_variable to deal with python 3 unicode types