Added Future-like class to allow error checking in other threads in
JUnit tests
Improved error checking in other threads in JUnit tests