The RAM test by the looks of it is hardcoded for a specific amount of RAM as it mentions specific IC numbers.