Fixed all model tests for calculate wrt loadable_db. A couple of tests failing.