Added failing test to demonstrate bug in flatten.