Refactoring, spending add test failing