Fix test in solaris to detect the free memory