memcmp fix and simple testing log