Extend test for resources data type
Bugfix str_replace overwrite of parent name

In cases where the child name is a substring of the parent name, the
parent name will be overwitten by str_replace and the error message gets
more difficult to interpret.
Merge pull request #8 from kolibre/validation-fixes

Validation fixes