Add ResourceFile unit tests