Improve downstream tests

Fix some kind of memory issue by fork+exec instead of system.
Remove Test-Flatten which never completes its unit tests