cast range to list for python3

Running unittests, I got this error (python 3):
unsupported operand type(s) for +: 'range' and 'list'
#python2
type(range(2)) returns list
# python3
type(range(2)) returns builtins.range

I solved it by casting the range into a list.