Removed the last ``with_metaclass``. \o/
Added unittests for the resource fields.