Fixing error in test runner

Adding better error reporting mechanism to test runner