Logic Fix

Logic in TestResults.py fixed. Additional tests were added and all pass.
PEP8 review.