Fix bug where env_matrix or test_buckets are different length.