[MRG] Test common refactor

This actually makes the tests faster and hopefully it will make the actual testing file way better to maintain.
Usually, constants like this are named with all capitals (http://legacy.python.org/dev/peps/pep-0008/#constants)