collate needed files in the right order and implement first test for helper function