Adding file exists checks in test to keep TravisCI from being angry.