Removed implicit imports from tests
Added function for combinations for python version 2.5 where it is not in
itertools.