greedy test