memset test: add automated validation