can test with input from a file