added unit testing and some get_all methods within models.