Fixed failing tests on resources controller and resource_type model.