More robust size sanity check
Make unittest.skipIf work on older python versions