list_test.py: Remove magic numbers from tests