randomize testinput and fix some area tests