Fixed the comparator for mock db model; added test cases for decimals.