Fixed error resulting in unit tests exiting with 0 when they've failed