refctored manage budget, added missing tests, added automation tests for #1214 budget exceed warning