Adding tests for stat_file