Working on tests for the Resource class.

Got a bunch more validation rules to port over.