tests for results.py