made unit test python 3 compatible by specifying the universal_newlines argument