first part of greedy array tests refactored
remaining greedy array tests refactored
rename