Test for simple resource definition
Use joi for schema validation