Algorithm working with easy tests