Moved to Groovy Unit Test for even prettier code.
Added 404 for when there are no untagged transactions and removed code that's not being tested.