test/test_size: fix slice comparison