Test for file input works