Add test target
Set up some basic tests
Accumulate errors when multiple errors occur in one session