Tests for _file_exists and a fix for method param