fixed tests for older versions of unittest