Added metrics and test in dbModel test.