* Avoid specifying type on the resource, derive it from the base 64 contents
* Improve tests