Various changes

Simplified Totaller by removing async/await
Added specific exception class
Factored out common test code