Added test for file emit