[core] Fix trash tests

- Encoding needed to be set to UTF-8.
- Minicluster needs to set hadoop_conf dir in order to function properly.
  core_site.py is dependent on core-site.xml that is created by minicluster
  start up process.