use mktemp to test binary