Refactoring some money related function to a util class, adding a test to increase coverage