Testing all possible scenarios