adding test coverage to models and views
added test for tree depth checker
helper function tests WIP