adding preliminary versions of the flattener tests