Insert more unit tests to RevenueDAO and general adjustments