Added tests for depends and views and mutiple fixes to depends in models