Fixed how validations are accessed on some resources.
Started adding Unit tests for models.