DFile controller and tests