use length for tests