Refactored some unit tests (thanks Dave for the pointers) and also added some new tests for Manage Allowances. This needs more tests but we have a few now as a starting point