Flatten method's test written and failing