flatten method and tests
0.0.9-0