This test has several for-loops that should be done as a parametrized test using pytest so we get nicer errors if one fails.